package com.csea.app.model.vo.repository;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "创建仓库请求参数")
public class RepositoryUpdateReqVO {
    @NotNull(message = "仓库ID不能为空")
    private Integer repositoryId;

    @NotBlank(message = "仓库名称不能为空")
    @Size(max = 50, message = "仓库名称不能超过50个字符")
    private String repositoryName;
    
    @Pattern(regexp = "IDIOM|COMMONSENSE|OTHER",
            message = "仓库类型必须是IDIOM/COMMONSENSE/OTHER")
    private String repositoryType;
    
    @Size(max = 200, message = "描述不能超过200个字符")
    private String description;
}